package com.crocodileQ.framework.config;


import com.github.slugify.Slugify;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/***
 * @Author 鳄鱼杆
 * @Date 2025/4/11 11:51
 */
@Configuration
public class ArticleConfig {

    /**
     * slugify Bean
     * @return
     */
    @Bean
    @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)
    public Slugify slugify() {
        return new Slugify().withTransliterator(true);
    }
    
}
